package com.itheima.demo04;

public class Manager {
    private String name;//姓名: name
    private int id;//工号: id
    private int salary;//工资: salary
    private int bouns;//奖金: bonus

    //getXxx()和setXxx()
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public int getBouns() {
        return bouns;
    }

    public void setBouns(int bouns) {
        this.bouns = bouns;
    }

    public Manager() {
    }

    //构造方法:
    public Manager(int id, int salary, int bouns, String name) {
        this.name = name;
        this.id = id;
        this.salary = salary;
        this.bouns = bouns;
    }

    //工作: work()工号为666, 基本工资为20000, 奖金为1000的项目经理王五正在努力的做着管理工作,分配任务,检查员工提交上来的代码.....
    public void work() {
        System.out.println("工号为" + getId() + ", 基本工资为" + getSalary() + ", 奖金为" + getBouns() + "的项目经理" + getName() + "正在努力的做着管理工作,分配任务,检查员工提交上来的代码.....");
    }
}
